﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%template _header%>

<div class="layout-cols2">
<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
	     <%template _memrecordermenu%>
	     	
			<div class="pannelbody">
	
		    <%csharp%>if( IsPost){ <%/csharp%>
	    
	    <%template _MsgBox%>
	    
	    <%csharp%> } else { <%/csharp%>
	    
	    <div class="box">
	        <div class="caption">
	            指标记录批量添加
	        </div>
	        <div class="content">
	            <br />
                <%csharp%>TempUrl="/IndicatorHistory/SurveyAdd.aspx";<%/csharp%>
	            <form id="idcform" name="idcform" method="post" action="{this.GetUrl(TempUrl)}">
	             <table class="table-box">
	                <tbody>
	                <tr>
                        <td class="table-box-left">日期</td>
	                    <td class="table-box-right">
	                        <input type="text" name="date" readonly="true"
	                             value="{DateTime.Now.ToString("yyyy-MM-dd")}" class="inputstyle" 
	                             onclick="WdatePicker({ isShowClear:false})"
	                         />
	                         
	                    </td>
	                 </tr>
	                 <tr><td colspan="2"></td></tr>
	                 <tr>
	                    <td class="" colspan="2">指标列表：（友情提示：您可以只选择部分的指标填写）</td>
	                 </tr>	                 

					<%csharp%>
					     foreach(LabcheckInfo idcinfo in IndicatorDataList)
					     {
					<%/csharp%>
					<tr>
					    <td class="table-box-left">{idcinfo.Name}</td>
					    <td class="table-box-right">
						   <input type ="text" id="idcvalue{idcinfo.Id}" name="idcvalue{idcinfo.Id}" /> &nbsp;&nbsp;{idcinfo.MeasurementUnits} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          （正常范围在 {idcinfo.NormalMinValue} {idcinfo.MeasurementUnits} 与 {idcinfo.NormalMaxValue} {idcinfo.MeasurementUnits} 之间）
                        </td>
                    </tr>
					<%csharp%>
					     }
					<%/csharp%> 
								
    	            <tr>
    	                <td class="table-box-left"></td>
    	                <td class="table-box-right"> 
                           <a href="#" onclick="CheckForm();" class="yellowbutton">提交</a> 
                        </td>
    	            </tr>   
	                </tbody>
	                </table>             
	            </form>
	            <script type="text/javascript">
	                function CheckForm()
	                {
	                    _$('idcform').submit();
	                }
	            </script>

	            <br />
	        </div>
	    </div>
	    
	    <%csharp%> } <%/csharp%>
	</div>
	</div>
	</div>
	</div>	
	
</div>

<%template _footer%>
